home *** CD-ROM | disk | FTP | other *** search
- Path: news.flex.com.au!news
- From: cobweb@flex.com.au (Tony L)
- Newsgroups: comp.lang.c++
- Subject: main()
- Date: Wed, 17 Apr 1996 10:38:28 GMT
- Organization: MAD
- Message-ID: <3174c0dc.7652220@news.flex.com.au>
- NNTP-Posting-Host: slip1-3.flex.com.au
- X-Newsreader: Forte Agent .99d/32.182
-
- Hi all,
-
- I have come across two different ways that 2 different beginners books
- recommend that every program should start. Could someone please tell
- me which one is the "BEST" or proper way?
-
- #include <stdio.h>
- void main()
- {
- printf("Hello!\n");
- return 0;
- }
-
- Or, the same as above but not include "void":
-
- #include <stdio.h>
- main()
- {
- printf("Hello!\n");
- return 0;
- }
-
- As I am just really starting out in "C", I'd like to get off to the
- right way. :-)
-
- Thank you very much for your time....
-
- Regards,
- TonyL....
-
- cobweb@flex.com.au
-
-